<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>角色添加</title>
    <link th:href="@{/static/bootstrap/css/bootstrap.min.css}" rel="stylesheet"/>
</head>
<body>
<div class="container">
    <div class="row" style="margin-top: 10px">
        <form class="col-sm-10 col-sm-offset-1" th:action="@{/role/add}" method="post">
            <div class="form-group">
                <label>角色名</label>
                <input class="form-control" type="text" name="name" />
            </div>


            <br/>
            <span th:each="p:${permissions}">
                <label>
                <input type="checkbox" th:name="ids" th:value="${p.id}"/>
                    <span th:text="${p.name}"></span>
                </label>
            </span>
            <br/>
            <button type="submit" class="btn btn-primary btn-block">提交</button>
        </form>
    </div>
</div>
</body>
</html>